package com.kfy.observerdemo.Pub_Sub;

import com.kfy.observerdemo.Observer.Observer;

/**
 * @ProjectName: ObserverDemo
 * @Package: com.kfy.observerdemo.Pub_Sub
 * @Author: K.F.Y
 * @Date: 2021/5/8
 */
public interface IPublisher<M> {

    //获得发布者名称
    String getName();

    //设置发布者的内容
    void setContent(M content);

    //获取发布者的内容
    M getContent();

    //消息发布
    void publish(SubscribePublish subscribePublish);

}
